package com.fang.dubbo.consumer.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.fang.dubbo.api.TestApi;
import com.fang.dubbo.model.TestReqModel;
import com.fang.dubbo.model.TestResModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/4/25 11:16 上午
 **/
@Slf4j
@Service
public class TestService {
    @Reference
    private TestApi testApi;

    public void test() {

        TestResModel resModel = testApi.test(new TestReqModel("12311"));
        log.info("test res={}", resModel);
    }
}
